﻿@using PracticeSimple.Models
@model LoginModel

@{
    ViewBag.Title = "Practice Simple";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div id="loginScreen"></div>
<h2>Login</h2>

<form action="/" method="post" class="form-horizontal">
        <div class="control-group">
        <label for="tbUsername" class="control-label">Username:</label>
            <div class="controls">
            <input type="text" id="tbUsername" name="Username" value="@Model.Username"/>
            </div>
        </div>


       <div class="control-group">
        <label for="tbPassword" class="control-label">Password:</label>
         <div class="controls">
            <input type="text" id="tbPassword" name="Password" value="@Model.Password"/>
            </div>
       </div>

        <div class="control-group">
         <div class="controls">
            <input type="submit" value="Login" class="btn btn-primary" />
         </div>
       </div>
    </form>

@if (Model.failedLogin)
{

    <div style="color: red;">Username or password is incorrect...please try again</div>

}